<?php
error_reporting(E_ALL ^ E_NOTICE);
session_start();
include("../include/function.php");
dbconnect();
?>
<?php
if($_SESSION["loggedin"]==true && $_SESSION["role"]==admin)
{
if(isset($_SESSION[msg]))
{
echo $_SESSION[msg];
unset($_SESSION[msg]);
}
?>

<?php
$id = $_GET['id'];

$del = deletequery("allocation","alloid",$id);

/* 
$del ="DELETE from allocation where alloid='$id'";
$dl= mysql_query($del); */
header("Location: list.php");
}
else
{
header("Location: login.php");
}
?>